home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / vol_300 / 329_01 / regerror.c < prev    next >
C/C++ Source or Header  |  1988-12-07  |  265b  |  20 lines

  1. /*
  2. **    name:        regerror.c
  3. **    purpose:    Look at the code
  4. */
  5. #include <stdio.h>
  6. #include "regexp.h"
  7.  
  8. void
  9. regerror(s)
  10. char *s;
  11. {
  12. #ifdef ERRAVAIL
  13.     error("regexp: %s", s);
  14. #else
  15.     fprintf(stderr, "regexp(3): %s", s);
  16.     exit(1);
  17. #endif
  18.     /* NOTREACHED */
  19. }
  20.